<div class="map">
    <img src="/assets/img/map-china.png" alt="china map"/>
</div>
<form action="/backend/city/insert" method="post">
    <input type="hidden" name="id" value="0"/>
    <div class="form-row">
	<label for="type">文字位置</label>
	<select name="type">
	    <option value="0">左边</option>
	    <option value="1">右边</option>
	</select>
    </div>
    <div class="form-row">
	<label for="position">城市位置</label>
	<span>X:</span>
	<input type="text" name="position_x" class="position"/>
	<span>Y:</span>
	<input type="text" name="position_y" class="position" />
    </div>
    <div class="form-row">
	<label for="name_zh">城市名称（中文）</label>
	<input type="text" name="name_zh" class="text"/>
    </div>
    <div class="form-row">
	<label for="name_fr">城市名称（法文）</label>
	<input type="text" name="name_fr" class="text"/>
    </div>
    <div class="form-row">
	<label for="name_en">城市名称（英文）</label>
	<input type="text" name="name_en" class="text"/>
    </div>
    <div class="form-button">
	<a href="javascript:void(0);" class="insert">新增</a>
	<a href="javascript:void(0);" class="update">更新</a>
	<a href="javascript:void(0);" class="delete">删除</a>
    </div>
</form>

<!--
<ul class="button">
	<li><a href="/backend/city/add" class="add">添加</a></li>
</ul>
<table class="records">
	<thead>
		<tr>
			<th><input type="checkbox" value="0" class="select-all"/></th>
			<th><a href="javascript:void(0);">type</a></th>
			<th><a href="javascript:void(0);">position_x</a></th>
			<th><a href="javascript:void(0);">position_y</a></th>
			<th><a href="javascript:void(0);">name_zh</a></th>
			<th><a href="javascript:void(0);">name_fr</a></th>
			<th><a href="javascript:void(0);">name_en</a></th>
			<th><a href="javascript:void(0);">created_at</a></th>
			<th>操作</th>
		</tr>
	</thead>
	<tfoot><tr><td colspan="8"></td></tr></tfoot>
	<tbody><tr><td colspan="8"></td></tr></tbody>
</table>
-->
<script type="text/x-jquery-tmpl" id="form-template">
	<form action="/backend/city/${action}" method="post">
		<input type="hidden" name="id" value="${id}"/>
		<div class="form-row">
			<label for="type">type</label>
			<input type="text" class="text" name="type" value="${type}"/>
		</div>
		<div class="form-row">
			<label for="position_x">position_x</label>
			<input type="text" class="text" name="position_x" value="${position_x}"/>
		</div>
		<div class="form-row">
			<label for="position_y">position_y</label>
			<input type="text" class="text" name="position_y" value="${position_y}"/>
		</div>
		<div class="form-row">
			<label for="name_zh">name_zh</label>
			<input type="text" class="text" name="name_zh" value="${name_zh}"/>
		</div>
		<div class="form-row">
			<label for="name_fr">name_fr</label>
			<input type="text" class="text" name="name_fr" value="${name_fr}"/>
		</div>
		<div class="form-row">
			<label for="name_en">name_en</label>
			<input type="text" class="text" name="name_en" value="${name_en}"/>
		</div>
		<div class="form-row">
			<label for="created_at">created_at</label>
			<input type="text" class="text" name="created_at" value="${created_at}"/>
		</div>
		<div class="form-button">
			<input type="submit" class="submit" value="提交"/>
		</div>
</form>
</script>
<script type="text/x-jquery-tmpl" id="list-template">
	<tr>
		<td><input type="checkbox" value="${id}"/></td>
		<td>${type}</td>
		<td>${position_x}</td>
		<td>${position_y}</td>
		<td>${name_zh}</td>
		<td>${name_fr}</td>
		<td>${name_en}</td>
		<td>${created_at}</td>
		<td class="action">
			<a href="javascript:void(0);" class="edit" title="编辑">
				<img src="/assets/img/edit.png" alt="编辑"/>
			</a>
			<a href="javascript:void(0);" class="delete" title="删除">
				<img src="/assets/img/delete.png" alt="删除"/>
			</a>
		</td>
	</tr>
</script>
<script type="text/x-jquery-tmpl" id="none-template">
	<tr><td colspan="8" style="text-align: center;">没有搜索到结果。</td></tr>
</script>